package dk.fuddi.conversion;

import org.apache.commons.lang.StringEscapeUtils;

/**
 * User: jen
 * Date: May 17, 2007
 * Time: 3:57:12 PM
 */
public class HtmlUtils implements DeEncodeInterface {

	private String name = "HTML";

	public String encode(String html) {
		System.out.println("HtmlUtils.encode");
		return StringEscapeUtils.escapeHtml(html);
	}

	public String decode(String html) {
		System.out.println("HtmlUtils.decode");
		return StringEscapeUtils.unescapeHtml(html);
	}

	public String toString() {
		return name;
	}
}
